home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Headers / eoadaptors / Oracle7 / OracleChannel.h < prev    next >
Encoding:
Text File  |  1994-08-26  |  1.8 KB  |  62 lines

  1. // OracleChannel.h 
  2. // Copyright (c) 1994, NeXT Computer, Inc.  All rights reserved.
  3.  
  4. #import "ociapr.h"
  5. #import <eoaccess/eoaccess.h>
  6.  
  7. @class OracleContext;
  8.  
  9. @interface OracleChannel:EOAdaptorChannel
  10. {
  11.     Cda_Def _cda;
  12.     OracleContext *_context;
  13.     
  14.     EOAttribute *_longAttribute;
  15.     id _longValue;
  16.     id _currentExpression;
  17.     
  18.     NSArray *_selectedAttributes;
  19.     NSMutableArray *_selectedColumns;
  20.     unsigned _fetchBufferLength;
  21.     unsigned _rowCapacity;
  22.     unsigned _rowsInBuffer;
  23.     unsigned _nextRowInBuffer;
  24.     unsigned _rowsProcessedCount;
  25.     
  26.     BOOL _fetchInProgress;
  27.     BOOL _opened;
  28. }
  29.  
  30. - initWithOracleContext:(OracleContext *)logon;
  31.  
  32. - (Cda_Def *)cursorDataArea;
  33.     // This returns NULL if the channel is not connected.
  34.  
  35. - (void)setFetchBufferLength:(unsigned)length;
  36. - (unsigned)fetchBufferLength;
  37.     // These are to manipulate how much memory to use as a fetch buffer.  The
  38.     // larger the buffer, the more rows that can be returned for each round
  39.     // trip to the server.
  40.  
  41. - (void)setDebugEnabled:(BOOL)yn;
  42. - (BOOL)isDebugEnabled;
  43.     // These control debugging output.  They are for debugging only -- do not
  44.     // depend on the contents of the output (if any) in a deployed app.
  45.  
  46. @end
  47.  
  48.  
  49. @interface NSObject (OracleChannelDelegation)
  50.  
  51. - (BOOL)oracleChannel:(OracleChannel *)channel
  52.     willReportDatabaseError:(NSString *)error;
  53.     // This delegate message is called whenever the channel encounters an
  54.     // error reported by the Oracle server.  The cda, lda, and hda can be
  55.     // gotten from the channel and context to determine exactly what error has
  56.     // occurred.  The string error is the text of the error message which will
  57.     // be sent to the adaptor's reportError: method.  The delegate can return
  58.     // NO to prevent the channel from calling reportError:.
  59.  
  60. @end
  61.  
  62.